import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    redirect: '/login'// 重定向
  },
  {
    path: '/admin', // 首页
    name: 'admin',
    component: () => import('../views/Admin/index.vue')
  },
  {
    path: '/login', // 登录页
    name: 'login',
    component: () => import('../views/Login/index.vue')
  },
  {
    path: '/salary', // 薪酬页
    name: 'salary',
    component: () => import('../views/Salary/index.vue'),
  },
  {
    path: '/salaryDetails', // 薪酬详情
    name: 'salaryDetails',
    component: () => import('../views/salaryDetails/index.vue'),
  },
  {
    path: '/huaming', // 花名c
    name: 'huaming',
    component: () => import('../views/Huaming/index.vue'),
  },
  {
    path: '/xiaoguozhanshi', // 效果展示区
    name: '效果展示区',
    component: () => import('../views/XiaoGuoZhanShi/index.vue'),
  },
  {
    path: '/xiaoguozhanshi/index1', // 效果展示区
    name: '效果展示区',
    component: () => import('../views/XiaoGuoZhanShi/index1.vue'),
  },
  {
    path: '/xiaoguozhanshi/index2', // 效果展示区
    name: '效果展示区',
    component: () => import('../views/XiaoGuoZhanShi/index2.vue'),
  },
  {
    path: '/xiaoguozhanshi/index3', // 效果展示区
    name: '效果展示区',
    component: () => import('../views/XiaoGuoZhanShi/index3.vue'),
  }


]

const router = new VueRouter({
  routes
})

export default router
